package cn.jetpiece.cloud.system.dp.app.modular.biz.entity;

import cn.jetpiece.cloud.core.util.MD5Util;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.catalina.startup.CredentialHandlerRuleSet;

import java.io.Serializable;
import java.nio.charset.Charset;
import java.util.Date;
import java.util.UUID;

/**
 * dp_t_api
 *
 * @author jetpiece
 * @since 2023-05-15
 */
@Data
@TableName("dp_t_api")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class DpTApi implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属子系统
     */
    @TableField(value = "system_id")
    private Integer systemId;

    /**
     * 接口名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * api路径
     */
    @TableField(value = "path")
    private String path;

    /**
     * api类型 1上报数据,2获取数据
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * contentType
     */
    @TableField(value = "content_type")
    private String contentType;

    /**
     * 请求方法1、GET 2、POST 3、PUT 4、DELETE
     */
    @TableField(value = "api_method")
    private Integer apiMethod;

    /**
     * 数据传输方式 1、form 2、body
     */
    @TableField(value = "data_method")
    private Integer dataMethod;

    /**
     * 项目归属权限校验
     */
    @TableField(value = "proj_perm_check")
    private Integer projPermCheck;

    /**
     * 业务类型
     */
    @TableField(value = "business_type")
    private String businessType;

    /**
     * 删除(1:正常,0:删除)
     */
    @TableField(value = "data_status")
    private Integer dataStatus;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 创建者人员ID
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill= FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新人员ID
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill= FieldFill.UPDATE)
    private Date updateTime;

}
